package yxy.cherry.router;

import yxy.banana.launcher.JSONBeanConfiguration;

public class Configuration extends yxy.banana.launcher.Configuration {
	static {
		SharedKey = "yxy.cherry.router.configuration.shared.key";
	}

	public static Configuration shared() {
		return JSONBeanConfiguration.shared(Configuration.SharedKey, Configuration.class);
	}

	public static class BindingClass {
		public String LocalIP = "0.0.0.0";
		public int LocalPort = 0;
	}

	public static class TCPServerClass {
		public BindingClass[] Bindings = null;
		public int AcceptorThreads = 0;
		public int WorkThreads = 0;
		public int HeartbeatTimeout = 30000;
		public int RegistryTimeout = 10000;
	}

	public TCPServerClass TCPServer = null;

}
